//
//  THBaseView.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THBaseView.h"
#import "THBaseEntity.h"
@implementation THBaseView

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self configBase];
    }
    return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        [self configBase];
    }
    return self;
}

- (void)configBase
{
    [self setupUI];
    [self configViews];
    [self setupFrames];
}

/**子类添加控件 */
-(void)setupUI
{
    //子类实现
}

/**子类控件属性值配置 */
-(void)configViews
{
    //子类实现
}

/**子类控件frame配置 */
-(void)setupFrames
{
    //子类实现
}

/**快速配置视图*/
- (void)configureWithEntity:(THBaseEntity*)entity
{
    
}

@end
